{include file="user.header.html"}
<div id="main" class="clearfix"> {include file="user.menu.html"}
  <div id="right"> {include file="user.curlocal.html"}
    <div class="wrapful">{include file="user.submenu.html"}
      <div class="wrap">
        <div class="public_select table">
          <table id="my_goods" server="{url route='my_goods/ajax_col'}">
            <tr class="line_bold">
              <th colspan="10"> <div class="search_div clearfix">
                  <form id="my_goods_form" method="get" class="float-left">
                    <select class="select1" name='sgcate_id'>
                      <option value="0">{$lang.sgcategory}</option>{html_options options=$sgcategories selected=$smarty.get.sgcate_id}
                    </select>
                    <select class="select2" name="character">
                      <option value="0">{$lang.character}</option>{html_options options=$lang.character_array selected=$smarty.get.character}
                    </select>
                    <input type="text" name="keyword" value="{$smarty.get.keyword|escape}"/>
                    <input type="submit" class="btn" value="{$lang.search}" />
                  </form>
                  <!--{if $filtered}--> 
                  <a class="detlink" href="{url route='my_goods/index'}">{$lang.cancel_query}</a> 
                  <!--{/if}--> 
                </div>
              </th>
            </tr>
            <tr class="sep-row" height="20">
              <td colspan="10"></td>
            </tr>
            <!--{if $goods_list}-->
            <tr class="gray"  ectype="table_header">
              <th class="align1" width="10"><input type="checkbox" id="all" class="checkall"/> <label for="all">{$lang.checkall}</label></th>
              <th coltype="editable" column="goods_name" checker="check_required" inputwidth="90%" title="{$lang.sort_order}"  class="cursor_pointer align1"><span ectype="order_by">{$lang.goods_name}</span></th>
              <th width="80" column="cate_id" title="{$lang.sort_order}"  class="cursor_pointer"><span ectype="order_by">{$lang.gcategory}</span></th>
              <th coltype="editable" column="brand" checker="check_required" inputwidth="55px" title="{$lang.sort_order}"  class="cursor_pointer"><span ectype="order_by">{$lang.brand}</span></th>
              <th class="cursor_pointer" coltype="editable" column="price" checker="check_number" inputwidth="50px" title="{$lang.sort_order}"><span ectype="order_by">{$lang.price}</span></th>
              <th class="cursor_pointer" coltype="editable" column="stock" checker="check_pint" inputwidth="50px" title="{$lang.sort_order}"><span ectype="order_by">{$lang.stock}</span></th>
              <th coltype="switchable" column="if_show" onclass="right_ico" offclass="wrong_ico" title="{$lang.sort_order}"  class="cursor_pointer"><span ectype="order_by">{$lang.if_show}</span></th>
              <th coltype="switchable" column="recommended" onclass="right_ico" offclass="wrong_ico" title="{$lang.sort_order}"  class="cursor_pointer"><span ectype="order_by">{$lang.recommended}</span></th>
              <th column="closed" title="{$lang.sort_order}" class="cursor_pointer"><span ectype="order_by">{$lang.closed}</span></th>
              <th>{$lang.handle}</th>
            </tr>
            <tr class="sep-row">
              <td colspan="10"></td>
            </tr>
            
            <!--{/if}--> 
            <!--{foreach from=$goods_list item=goods name=fe_goods}-->
            <tr class="sep-row">
              <td colspan="10"></td>
            </tr>
            <tr class="line-hd">
              <th colspan="10" align="left"> <p>
                  <input id="checkbox_{$goods.goods_id}" type="checkbox" class="checkitem" value="{$goods.goods_id}" align="absmiddle" />
                  <label for="checkbox_{$goods.goods_id}">{$lang.goods_sku}</label>
                  {$goods.sku}</p>
              </th>
            </tr>
            <tr class="line line-blue{if $smarty.foreach.fe_goods.last} last_line{/if}" ectype="table_item" idvalue="{$goods.goods_id}" controller="my_goods">
              <td width="10" class="align1 first"><a href="{url route='goods/index' id=$goods.goods_id}" target="_blank"><img src="{$goods.default_image|url_format}" width="50" height="50" /></a></td>
              <td class="align1"><p class="ware_text"><span class="color2" ectype="inline_edit" controller="my_goods" fieldname="goods_name" fieldid="{$goods.goods_id}" required="required">{$goods.goods_name|escape}</span></p></td>
              <td width="80" class="align2"><span class="color2">{$goods.cate_name|nl2br}</span></td>
              <td class="align2"><span class="color2">{$goods.brand|escape}</span></td>
              <td class="align2"><span ectype="dialog" dialog_width="430" uri="{url route='my_goods/editspec' id=$goods.goods_id}" dialog_title="{$lang.price_stock}" dialog_id="my_goods_editspec" class="cursor_pointer">{$goods.price}</span></td>
              <td class="align2"><span ectype="dialog" dialog_width="430" uri="{url route='my_goods/editspec' id=$goods.goods_id}" dialog_title="{$lang.price_stock}" dialog_id="my_goods_editspec" class="cursor_pointer">{$goods.stock}</span></td>
              <td class="align2"><span style="margin-left:15px;" ectype="editobj"  fieldname="if_show"{if $goods.if_show}class="right_ico" status="on" fieldvalue="1" {else}class="wrong_ico" stauts="off" fieldvalue="0"{/if}></span></td>
              <td class="align2"><span style="margin-left:15px;" ectype="editobj"  fieldname="recommended" {if $goods.recommended}class="right_ico" status="on" fieldvalue="1" {else}class="wrong_ico" stauts="off" fieldvalue="0" {/if}></span></td>
              <td class="align2"><span style="margin-left:15px;" ectype="editobj"  fieldname="closed" {if $goods.closed}class="right_ico" fieldvalue="1"{else}class="wrong_ico" fieldvalue="0"{/if}></span></td>
              <td class="last"> <a href="{url route='my_goods/edit' id=$goods.goods_id ret_page=$page_info.curr_page}" class="edit">{$lang.edit}</a> <a href="javascript:drop_confirm('{$lang.drop_confirm}', '{url route='my_goods/delete' id=$goods.goods_id}');" class="delete">{$lang.drop}</a></td>
            </tr>
            <!--{foreachelse}-->
            <tr>
              <td colspan="10"><div class="notice-word">
                  <p>{$lang.{$app->controller->action->id}}{$lang.no_records}</p>
                </div></td>
            </tr>
            <!--{/foreach}--> 
            <!--{if $goods_list}-->
            <tr class="sep-row">
              <td colspan="10"></td>
            </tr>
            <tr class="operations btion">
              <th class="clearfix"><input type="checkbox" id="all2" class="checkall float-left" style="margin:3px 5px 0 0" />
                  <label for="all2">{$lang.checkall}</label></th>
              <th colspan="9"> <p class="position1 clearfix">
                  
                  <a href="javascript:void(0);" class="edit bgf" ectype="batchbutton" uri="{url route='my_goods/batch_edit'}" name="id">{$lang.edit}</a> <a href="javascript:void(0);" class="delete" ectype="batchbutton" uri="{url route='my_goods/delete'}" name="id" presubmit="confirm('{$lang.drop_confirm}')">{$lang.drop}</a> </p>
                <div class="position2 clearfix center">{include file="page.bottom.html"}</div>
              </th>
            </tr>
            <!--{/if}-->
          </table>
        </div>
      </div>
    </div>
  </div>
</div>
<iframe id="iframe" name="iframe" src="about:blank" frameborder="0" width="0" height="0" style="display:none"></iframe>
{include file="user.footer.html"}